<ion-view id="invoice-apply" view-title="发票申请"  hide-nav-bar="true">
  <ion-header-bar align-title="center" class="bar-calm">
    <div class="buttons">
      <button class="button head-button button-clear center-btn" ng-click="goBack()">
        <img src="img/order-commit/backIcon.png">
      </button>
    </div>
    <h1 class="title">发票申请</h1>
    <div class="buttons">
      <button class="button head-button button-clear center-btn"
              ng-click="goRecord()">
        记录
      </button>
    </div>
  </ion-header-bar>
  <ion-content>
    <div class="line" style="margin-top: 30px;">
      <div class="left">可开金额</div>
      <div class="right">
        <div class="text">{{balance}}<font style="color: #282828;">元</font></div>
      </div>
    </div>
    <div class="line">
      <div class="left">发票抬头</div>
      <div class="right">
        <input placeholder="" ng-model="invData.subject">
      </div>
    </div>
    <div class="line" >
      <div class="left">发票金额</div>
      <div class="right">
        <input maxlength="8"
               placeholder="最低100元"
               ng-change="checkAmount()"
               ng-model="invData.fundamount">
      </div>

    </div>
    <div class="line" >
      <div class="left">开票内容</div>
      <div class="right">
        <input maxlength="120" placeholder="不超过120个字符" ng-model="invData.purpose">
      </div>
    </div>
    <div class="line">
      <div class="left">邮寄地址</div>
      <div class="right">
        <input placeholder="" ng-model="invData.address">
      </div>
    </div>
    <div class="line">
      <div class="left">邮政编码</div>
      <div class="right">
        <input placeholder="" ng-model="invData.postcode">
      </div>
    </div>
    <div class="line">
      <div class="left">收件人</div>
      <div class="right">
        <input placeholder=""  ng-model="invData.receiver">
      </div>
    </div>
    <div class="line">
      <div class="left">联系电话</div>
      <div class="right">
        <input placeholder=""  ng-model="invData.telephone">
      </div>
    </div>
    <div class="btn" on-tap="submit()">
      提交申请
    </div>
  </ion-content>
</ion-view>